/**
 * <AiRmob-Framework; A simple augmented reality framework for android >
    Copyright (C) <2012>  <AiRmob Team>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package rendercomponents;

import java.util.LinkedList;

public interface SceneManagerInterface {
	//Builds the scenegraph and store all model-identifier in the LinkedList<Identifier> allObjects 
	//and all light-identifier in the LinkedList<Identifier> allLights (both required for usage with the renderer!)
	//has to calculate the accumulated model-matrices as it traverses the scenegraph.
	//for lights it has additionally to calculate the modelview-matrix (view- * model-matrix).
	public void buildSceneGraph();
	
	//Sort the list of model-identifier
	public void sortSceneGraph();

	//Searches in the scenegraph for an identifier with the same colorID as searchID
	//used by the Renderer for picking
	//needs to tell the renderer if something was picked successfully via renderer.picked
	public void searchColor(int searchID, Parent object, Identifier result);
	
	
	public void setAllObjects(LinkedList<Identifier> allObjects);
	
	public LinkedList<Identifier> getAllObjects();
	
	public void setAllLights(LinkedList<Identifier> allLights);
	
	public LinkedList<Identifier> getAllLights();
}
